import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant';
import 'vant/lib/index.css';
import axios from './http'
import VueLazyLoad from 'vue-lazyload'
 Vue.use(VueLazyLoad,{
     preLoad: 1.3,
     error:require('./assets/img/error.png'),
     loading:require('./assets/img/loading.png'),
     attempt: 1
 })
Vue.use(Vant);
Vue.config.productionTip = false
Vue.prototype.$http = axios;
Vue.filter('getDate', (value) => {
  return new Date(value).toLocaleDateString()
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
